package core.collection.mymap;

import java.util.LinkedHashMap;

/**
 *
 * @author
 * @create 2018-12-23 12:31
 **/
public class mymap_4_Map_LinkedHashMap {
    /**
     * @param args
     * LinkedHashMap可以保证怎么存就怎么取
     */
    public static void main(String[] args) {
        LinkedHashMap<String, Integer> lhm = new LinkedHashMap<>();
        lhm.put("张三", 23);
        lhm.put("李四", 24);
        lhm.put("王五", 25);
        lhm.put("赵六", 26);

        System.out.println(lhm);
    }
}
